<?php
/**
 * Data model
 *
 * @category  DataModel
 * @package   DataModel
 * @author    DataModel Generator v1.0
 * @version   $Revision: 127 $
 */

/**
 * Data model for table "coverage_line_info"
 *
 * @category  DataModel
 * @package   DataModel
 * @author    DataModel Generator v1.0
 * @version   $Revision: 127 $
 */
class CoverageLineInfo extends BaseCoverageLineInfo
{
    public static function saveLineInfo(CoverageLineStatus $line, $info)
    {
        $cov = new CoverageLineInfo();
        $cov->linestatus_id = $line->id;
        $cov->name = $info['name'];
        $cov->status = $info['status'];
        $cov->class = $info['class'];
        $cov->full_path = $info['fullPath'];
        $cov->line = $info['line'];
        $cov->save();

        return $cov;
    }
	
    public static function saveIfNotExists($params = null)
    {
        return parent::saveIfNotExists($params, __CLASS__);
    }
}
